
package demo.osgi.dictquery.local;

import demo.osgi.dictquery.QueryService;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class LocalDictQueryServiceImpl
    implements QueryService
{

    public LocalDictQueryServiceImpl()
    {
    }

    public String queryWord(String word)
    {
        return (String)dict.get(word);
    }

    private static final Map dict;

    static 
    {
        dict = new ConcurrentHashMap();
        dict.put("test", "\u6D4B\u8BD5");
        dict.put("temp", "\u4E34\u65F6");
    }
}
